package com.sv.zgydor.pojo.orcl;

import javax.persistence.*;

@Entity
@Table(name = "T_STA_IDENCATALOG", schema = "SGIS_BUS", catalog = "")
public class TStaIdencatalogEntity {
    private int cahzId;
    private int staCode;
    private int regionid;
    private String caName;
    private String ideCode;
    private Integer caPar;
    private String idenJldw;
    private String staNote;
    private String status;
    private String caSub;
    private String rolestring;
    private Integer orderby;
    private String flag;
    private String rolestring1;

    @Id
    @Column(name = "CAHZ_ID", nullable = false, precision = 0)
    public int getCahzId() {
        return cahzId;
    }

    public void setCahzId(int cahzId) {
        this.cahzId = cahzId;
    }

    @Basic
    @Column(name = "STA_CODE", nullable = false, precision = 0)
    public int getStaCode() {
        return staCode;
    }

    public void setStaCode(int staCode) {
        this.staCode = staCode;
    }

    @Basic
    @Column(name = "REGIONID", nullable = false, precision = 0)
    public int getRegionid() {
        return regionid;
    }

    public void setRegionid(int regionid) {
        this.regionid = regionid;
    }

    @Basic
    @Column(name = "CA_NAME", nullable = true, length = 100)
    public String getCaName() {
        return caName;
    }

    public void setCaName(String caName) {
        this.caName = caName;
    }

    @Basic
    @Column(name = "IDE_CODE", nullable = true, length = 20)
    public String getIdeCode() {
        return ideCode;
    }

    public void setIdeCode(String ideCode) {
        this.ideCode = ideCode;
    }

    @Basic
    @Column(name = "CA_PAR", nullable = true, precision = 0)
    public Integer getCaPar() {
        return caPar;
    }

    public void setCaPar(Integer caPar) {
        this.caPar = caPar;
    }

    @Basic
    @Column(name = "IDEN_JLDW", nullable = true, length = 50)
    public String getIdenJldw() {
        return idenJldw;
    }

    public void setIdenJldw(String idenJldw) {
        this.idenJldw = idenJldw;
    }

    @Basic
    @Column(name = "STA_NOTE", nullable = true, length = 1000)
    public String getStaNote() {
        return staNote;
    }

    public void setStaNote(String staNote) {
        this.staNote = staNote;
    }

    @Basic
    @Column(name = "STATUS", nullable = true, length = 1)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "CA_SUB", nullable = true, length = 1)
    public String getCaSub() {
        return caSub;
    }

    public void setCaSub(String caSub) {
        this.caSub = caSub;
    }

    @Basic
    @Column(name = "ROLESTRING", nullable = true, length = 200)
    public String getRolestring() {
        return rolestring;
    }

    public void setRolestring(String rolestring) {
        this.rolestring = rolestring;
    }

    @Basic
    @Column(name = "ORDERBY", nullable = true, precision = 0)
    public Integer getOrderby() {
        return orderby;
    }

    public void setOrderby(Integer orderby) {
        this.orderby = orderby;
    }

    @Basic
    @Column(name = "FLAG", nullable = true, length = 2)
    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    @Basic
    @Column(name = "ROLESTRING1", nullable = true, length = 200)
    public String getRolestring1() {
        return rolestring1;
    }

    public void setRolestring1(String rolestring1) {
        this.rolestring1 = rolestring1;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TStaIdencatalogEntity that = (TStaIdencatalogEntity) o;

        if (cahzId != that.cahzId) return false;
        if (staCode != that.staCode) return false;
        if (regionid != that.regionid) return false;
        if (caName != null ? !caName.equals(that.caName) : that.caName != null) return false;
        if (ideCode != null ? !ideCode.equals(that.ideCode) : that.ideCode != null) return false;
        if (caPar != null ? !caPar.equals(that.caPar) : that.caPar != null) return false;
        if (idenJldw != null ? !idenJldw.equals(that.idenJldw) : that.idenJldw != null) return false;
        if (staNote != null ? !staNote.equals(that.staNote) : that.staNote != null) return false;
        if (status != null ? !status.equals(that.status) : that.status != null) return false;
        if (caSub != null ? !caSub.equals(that.caSub) : that.caSub != null) return false;
        if (rolestring != null ? !rolestring.equals(that.rolestring) : that.rolestring != null) return false;
        if (orderby != null ? !orderby.equals(that.orderby) : that.orderby != null) return false;
        if (flag != null ? !flag.equals(that.flag) : that.flag != null) return false;
        if (rolestring1 != null ? !rolestring1.equals(that.rolestring1) : that.rolestring1 != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = cahzId;
        result = 31 * result + staCode;
        result = 31 * result + regionid;
        result = 31 * result + (caName != null ? caName.hashCode() : 0);
        result = 31 * result + (ideCode != null ? ideCode.hashCode() : 0);
        result = 31 * result + (caPar != null ? caPar.hashCode() : 0);
        result = 31 * result + (idenJldw != null ? idenJldw.hashCode() : 0);
        result = 31 * result + (staNote != null ? staNote.hashCode() : 0);
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + (caSub != null ? caSub.hashCode() : 0);
        result = 31 * result + (rolestring != null ? rolestring.hashCode() : 0);
        result = 31 * result + (orderby != null ? orderby.hashCode() : 0);
        result = 31 * result + (flag != null ? flag.hashCode() : 0);
        result = 31 * result + (rolestring1 != null ? rolestring1.hashCode() : 0);
        return result;
    }
}
